

package com.hazelcast.collection;

import com.hazelcast.config.SplitBrainProtectionConfig;

import java.util.List;

/**
 * Concurrent, distributed implementation of {@link List}.
 *
 * <p>The Hazelcast IList is not a partitioned data-structure. Entire contents
 * of an IList is stored on a single machine (and in the backup). The IList
 * will not scale by adding more members to the cluster.
 *
 * <p>Supports split brain protection {@link SplitBrainProtectionConfig} since 3.10
 * in cluster versions 3.10 and higher.
 *
 * @param <E> the type of elements maintained by this list
 * @see List
 */
public interface IList<E> extends List<E>, ICollection<E> {


    /**
     * Returns {@link LocalListStats} for this collection.
     *
     * @return this collection's local statistics.
     */
    LocalListStats getLocalListStats();

}
